home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Presentations / Presentations ’97 / Sessions ’97 / Multiplatform Code⁄Data Sharing / HelloBothWorlds / Libraries / resfile.h < prev    next >
Encoding:
Text File  |  1997-06-26  |  444 b   |  24 lines  |  [TEXT/CWIE]

  1.  
  2. // mail <chelly@eden.com> or surf http://www.eden.com/~chelly for feedback
  3. // free source code - do whatever you like with it
  4.  
  5. // common interface base class for resource access classes
  6. // nothing special in the implementation
  7.  
  8. #ifndef resfile_H
  9. #define resfile_H
  10.  
  11. #include "common.h"
  12.  
  13. class resfile {
  14. public:
  15.     
  16.     virtual ~resfile();
  17.     
  18.     virtual void* get_resource( long type, int id ) = 0;
  19.     static void   release_resource( void* );
  20. };
  21.  
  22. #endif
  23.  
  24.